<%@ page import="feifei.second.User" %><%--
  Created by IntelliJ IDEA.
  User: 乔见东方姑娘
  Date: 2023/8/14
  Time: 20:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="p" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    HttpSession session1 = request.getSession();
    User user = (User) session1.getAttribute("user");
    String username = user.getUsername();
    String dateOfBirth = user.getDateOfBirth();
    String hobbies = user.getHobbies();
    String birthCity = user.getBirthCity();
    String gender = user.getGender();
%>
<table border="1px" width="300px" align="center" cellspacing="0" cellpadding="10px">
    <caption>
        <b>动态渲染用户信息</b>
    </caption>
    <tr>
        <th>用户名</th>
        <td><%=username%></td>
    </tr>
    <tr>
        <th>出生日期</th>
        <td><%=dateOfBirth%></td>
    </tr><tr>
    <th>兴趣爱好</th>
    <td><%=hobbies%></td>
</tr><tr>
    <th>出生城市</th>
    <td><%=birthCity%></td>
</tr><tr>
    <th>性别</th>
    <td><%=gender%></td>
</tr>
</table>
</body>
</html>
